---
title: "execute in queue · RUAL Documentation"
description: "Executes the given function on a given time using the queue and doesn't wait for it to be executed."
canonical: https://docs.rual.nl/block-types/function execution/function_custom_execute_from_queue
language: en
---

# execute in queue

This block is part of the [`function execution`](https://docs.rual.nl/block-types/function%20execution) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Function Selection Required

This block requires you to choose a custom function to execute when triggered. You must manually select the function you want to use using the function selector modal. To access the modal, click the white button on the block.

Executes the given function on a given time using the queue and doesn't wait for it to be executed.

- flow `flow`

- unique ID `value` A unique ID will make sure it doesn't make a new one if a queue item already exists with this ID.

- Execute at `date` The time this function should run (rounded to the nearest 10 sec).

Default `now`

- Debounce `condition` This allows for a `debounce` (remove old, create new one) effect on this function, requires a `unique id` to work.

Default `false`

- flow `flow`

- queue `object` The queue document

| `custom function from queue` |
| --- |

A typical wiring for [execute in queue](https://docs.rual.nl/block-types/function%20execution/function_custom_execute_from_queue): [reply in JSON](https://docs.rual.nl/block-types/json/httpconnection_set_json) feeds the `flow` pin; [create document](https://docs.rual.nl/block-types/storage/function_create_document_from_mutations) feeds the `unique_id` pin; [update document](https://docs.rual.nl/block-types/storage/function_update_document_mutations) feeds the `debounce` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the execute in queue block: typical wiring for execute in queue.](https://docs.rual.nl/canvas-examples/function_custom_execute_from_queue.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): feeds into this block. Gets the selected fields from the given object.

- [reply in JSON](https://docs.rual.nl/block-types/json/httpconnection_set_json): feeds into this block. Reply to any httpconnection as JSON body.

- [branch](https://docs.rual.nl/block-types/flow/branch): feeds into this block.

- [create document](https://docs.rual.nl/block-types/storage/function_create_document_from_mutations): feeds into this block. Creates a document in the given storage.

- [update document](https://docs.rual.nl/block-types/storage/function_update_document_mutations): feeds into this block. Update document in the given storage and creates a revision for it.

- [create](https://docs.rual.nl/block-types/globals/trigger_custom_function): feeds into this block. Creates a new function that can be executed using the given name.

### Used in these guides

These documentation pages use or explain this block:

- [Email System Setup](https://docs.rual.nl/tutorials/email-system)

- [File Upload & Processing](https://docs.rual.nl/tutorials/file-upload-processing)

- [Block Execution](https://docs.rual.nl/blueprints/block-execution)

- [Common Blueprint Patterns](https://docs.rual.nl/blueprints/common-patterns)

- [Queue](https://docs.rual.nl/blueprints/queue)

- [Block Quick Reference](https://docs.rual.nl/reference/block-quick-reference)

- [Common Issues & Fixes](https://docs.rual.nl/troubleshooting/common-issues)

- [Finding Blocks](https://docs.rual.nl/block-types/finding-blocks)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
